package com.doudou.base.resources.controller;

import com.doudou.commons.entity.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 傻男人
 * @Date: 2020/6/2 14:30
 * @Version: 1.0
 * @Description:
 */
@RestController
@RequestMapping("/user")
public class TestController {

    @GetMapping(value = "/test")
    public Result<String> testCon(@RequestParam("name")String name) {
        return Result.ok("hello ，my name is " + name);
    }
}
